

#ifndef COMMON_H
#define COMMON_H

#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "semphr.h"

#include "fsl_device_registers.h"
#include "fsl_debug_console.h"
#include "fsl_flexio.h"
#include "fsl_xbara.h"
#include "fsl_xbarb.h"
#include "fsl_shell.h"
#include "fsl_pwm.h"
#include "fsl_lpi2c.h"
#include "fsl_lpi2c_freertos.h"

#include "board.h"
#include "app.h"
#include "Shell_command.h"
#include "Motor.h"
#include "VL53L0X.h"

#define SHELL_Printf PRINTF

extern uint8_t Start_Signal;
extern uint8_t Crash_L;
extern uint8_t Crash_R;
extern uint8_t Dis_State;
extern uint8_t Dis_ambient;
extern uint8_t Dis_signal;
extern uint16_t Distance;

/*!
 * @brief FreeRTOS任务延时阻塞 ms级
 *
 * @param delay_ms 需要延时多少就传入多少
 */
extern void TaskDelay_ms(uint16_t delay_ms);

#endif
